<?php
//define the html form action.
define("ACTION_INSERT","INSERT");		//insert a record in the middle
define("ACTION_UPDATE","UPDATE");
define("ACTION_SAVE"  ,"SAVE");
define("ACTION_DELETE","DELETE");
define("ACTION_COPY"  ,"COPY");
define("ACTION_SEARCH","SEARCH");
define("ACTION_VIEW"  ,"VIEW");			//Only view the data, does not modify.
define("ACTION_CANCEL","CANCEL");
define("ACTION_PREVIOUS","PREVIOUS");	//previous record
define("ACTION_NEXT","NEXT");			//next record
define("ACTION_TOEXCEL","TOEXCEL");     //to excel

//define right constant
define('RIGHT_ADMIN','admin');
define('RIGHT_USER' ,'user');
//page default pagesize
define('DEFAULT_PAGESIZE','20');
//db execute result flag
define("DB_RESULT_OK_FLAG","OK");
define("DB_RESULT_ER_FLAG","ERROR");

$SM->assign("ACTION_INSERT"  ,ACTION_INSERT);
$SM->assign("ACTION_UPDATE"  ,ACTION_UPDATE);
$SM->assign("ACTION_SAVE"    ,ACTION_SAVE);
$SM->assign("ACTION_DELETE"  ,ACTION_DELETE);
$SM->assign("ACTION_COPY"    ,ACTION_COPY);
$SM->assign("ACTION_SEARCH"  ,ACTION_SEARCH);
$SM->assign("ACTION_VIEW"    ,ACTION_VIEW);
$SM->assign("ACTION_CANCEL"  ,ACTION_CANCEL);
$SM->assign("ACTION_PREVIOUS",ACTION_PREVIOUS);
$SM->assign("ACTION_NEXT"    ,ACTION_NEXT);
$SM->assign("ACTION_TOEXCEL" ,ACTION_TOEXCEL);

$SM->assign("RIGHT_ADMIN",RIGHT_ADMIN);
$SM->assign("RIGHT_USER" ,RIGHT_USER);
$SM->assign("DB_RESULT_OK_FLAG",DB_RESULT_OK_FLAG);
$SM->assign("DB_RESULT_ER_FLAG",DB_RESULT_ER_FLAG);

//define the constant variables of table name
$TABLE_PREFIX = 't_p4u';
if(!defined('UC_DBTABLEPRE')) {
    define('UC_DBTABLEPRE', '`discuz`.d_ucenter_');
}
/***
$TABLE_CITY             ="T_CITY";
$TABLE_COUNTRY          ="T_COUNTRY";
$TABLE_COUNTY           ="T_COUNTY";
$TABLE_ENTERPRISE       ="T_ENTERPRISE";
$TABLE_EP_USER          ="T_EP_USER";
$TABLE_FEEDBACK         ="T_FEEDBACK";
$TABLE_FRIEND           ="T_FRIEND";
$TABLE_MULTILANG_DATA   ="T_MULTILANG_DATA";
$TABLE_MULTILANG_MESSAGE="T_MULTILANG_MESSAGE";
$TABLE_PROVINCE         ="T_PROVINCE";
$TABLE_SYSTEM_MAXID     ="T_SYSTEM_MAXID";
$TABLE_MAIL             ="T_MAIL";
$TABLE_MAIL_CONTENT     ="T_MAIL_CONTENT";
***/

$TABLE_DICTIONARY       = $TABLE_PREFIX."_dict";
$TABLE_SYSTEM_MENU      = $TABLE_PREFIX."_menu";
//project table list
$TABLE_QUESTIONLOG   = $TABLE_PREFIX."_questionlog";
$TABLE_PROJECT       = $TABLE_PREFIX."_project";
$TABLE_TASK          = $TABLE_PREFIX."_task";
$TABLE_PRETASK       = $TABLE_PREFIX."_pretask";
$TABLE_TASK_RESOURCE = $TABLE_PREFIX."_task_res";

//end define
?>